﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="editlist.aspx.cs" Inherits="appleader_projects_editlist" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>项目列表</title>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../../sys/style/StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <div id="content">
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
                
                
                SelectCommand="SELECT project.projectid, project.projectname, users.realname, model.modelname, method.methodname FROM project INNER JOIN model ON project.modelid = model.modelid INNER JOIN method ON project.methodid = method.methodid INNER JOIN users ON project.creator = users.username WHERE (project.organizationid = @organizationid) AND (project.state = @state) ORDER BY project.createdtime DESC">
                <SelectParameters>
                    <asp:SessionParameter Name="organizationid" SessionField="organizationid" 
                        Type="Int32" />
                    <asp:Parameter DefaultValue="未评的" Name="state" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource1" 
                ForeColor="#333333" GridLines="None" Width="100%" PageSize="5">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <Columns>
                    <asp:BoundField DataField="projectname" HeaderText="项目名称" 
                        SortExpression="projectname">
                        <ItemStyle Width="120px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="realname" HeaderText="项目主管" 
                        SortExpression="realname">
                        <ItemStyle Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="modelname" HeaderText="使用的模型" 
                        SortExpression="modelname">
                        <ItemStyle Width="200px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="methodname" HeaderText="使用的评估方法" 
                        SortExpression="methodname">
                    </asp:BoundField>
                    <asp:HyperLinkField DataNavigateUrlFields="projectid" 
                        DataNavigateUrlFormatString="edit.aspx?projectid={0}" HeaderText="修改/删除" 
                        Text="详细信息">
                        <ItemStyle Width="60px" ForeColor="Red" CssClass="bacimg1" 
                            HorizontalAlign="Right" />
                    </asp:HyperLinkField>
                </Columns>
                <PagerStyle BackColor="White" ForeColor="#0033CC" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#999999" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
        </div>
    
    </div>
    </form>
</body>
</html>
